﻿using UnityEngine;
using System.Collections;

[RequireComponent(typeof(RunnerCharacter))]
public class RunnerUserControl : MonoBehaviour
{

    private RunnerCharacter runner;

    void Awake()
    {
        runner = GetComponent<RunnerCharacter>();
    }

     
    // Update is called once per frame
    void FixedUpdate()
    {

        runner.Slide(Input.GetKey(KeyCode.S));

        if (Input.GetKeyDown(KeyCode.W))
        {
            runner.Jump();
        }
    }


}
